<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>sign</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/androguard/">Androguard</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Module&nbsp;sign
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="sign-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="sign-module.html">Module sign</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># This file is part of Androguard.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (C) 2010, Anthony Desnos &lt;desnos at t0t0.org&gt;</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment"># All rights reserved.</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment"># Androguard is free software: you can redistribute it and/or modify</tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment"># it under the terms of the GNU Lesser General Public License as published by</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment"># the Free Software Foundation, either version 3 of the License, or</tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment"># (at your option) any later version.</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment"># Androguard is distributed in the hope that it will be useful,</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-comment"># but WITHOUT ANY WARRANTY; without even the implied warranty of</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-comment"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"><tt class="py-comment"># GNU Lesser General Public License for more details.</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-comment"># You should have received a copy of the GNU Lesser General Public License</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-comment"># along with Androguard.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module error=error-module.html,Function error.error()=error-module.html#error"><a title="error
error.error" class="py-name" href="#" onclick="return doclink('link-0', 'error', 'link-0');">error</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name"><a title="error
error.error" class="py-name" href="#" onclick="return doclink('link-1', 'error', 'link-0');">error</a></tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name" targets="Module analysis=analysis-module.html"><a title="analysis" class="py-name" href="#" onclick="return doclink('link-2', 'analysis', 'link-2');">analysis</a></tt> <tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Variable analysis.TAINTED_PACKAGE_CREATE=analysis-module.html#TAINTED_PACKAGE_CREATE"><a title="analysis.TAINTED_PACKAGE_CREATE" class="py-name" href="#" onclick="return doclink('link-3', 'TAINTED_PACKAGE_CREATE', 'link-3');">TAINTED_PACKAGE_CREATE</a></tt><tt class="py-op">,</tt> <tt id="link-4" class="py-name" targets="Variable analysis.TAINTED_PACKAGE_CALL=analysis-module.html#TAINTED_PACKAGE_CALL"><a title="analysis.TAINTED_PACKAGE_CALL" class="py-name" href="#" onclick="return doclink('link-4', 'TAINTED_PACKAGE_CALL', 'link-4');">TAINTED_PACKAGE_CALL</a></tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable sign.FIELD_ACCESS=sign-module.html#FIELD_ACCESS"><a title="sign.FIELD_ACCESS" class="py-name" href="#" onclick="return doclink('link-5', 'FIELD_ACCESS', 'link-5');">FIELD_ACCESS</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt class="py-string">"R"</tt> <tt class="py-op">:</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-string">"W"</tt> <tt class="py-op">:</tt> <tt class="py-number">1</tt> <tt class="py-op">}</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt id="link-6" class="py-name" targets="Variable sign.PACKAGE_ACCESS=sign-module.html#PACKAGE_ACCESS"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-6', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> <tt id="link-7" class="py-name"><a title="analysis.TAINTED_PACKAGE_CREATE" class="py-name" href="#" onclick="return doclink('link-7', 'TAINTED_PACKAGE_CREATE', 'link-3');">TAINTED_PACKAGE_CREATE</a></tt> <tt class="py-op">:</tt> <tt class="py-number">0</tt><tt class="py-op">,</tt> <tt id="link-8" class="py-name"><a title="analysis.TAINTED_PACKAGE_CALL" class="py-name" href="#" onclick="return doclink('link-8', 'TAINTED_PACKAGE_CALL', 'link-4');">TAINTED_PACKAGE_CALL</a></tt> <tt class="py-op">:</tt> <tt class="py-number">1</tt> <tt class="py-op">}</tt> </tt>
<a name="Sign"></a><div id="Sign-def"><a name="L25"></a><tt class="py-lineno"> 25</tt> <a class="py-toggle" href="#" id="Sign-toggle" onclick="return toggle('Sign');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="sign.Sign-class.html">Sign</a> <tt class="py-op">:</tt>  </tt>
</div><a name="Sign.__init__"></a><div id="Sign.__init__-def"><a name="L26"></a><tt class="py-lineno"> 26</tt> <a class="py-toggle" href="#" id="Sign.__init__-toggle" onclick="return toggle('Sign.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Sign-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Sign.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Sign.__init__-expanded"><a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt>  </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">hlevels</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
</div><a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"> </tt>
<a name="Sign.add"></a><div id="Sign.add-def"><a name="L30"></a><tt class="py-lineno"> 30</tt> <a class="py-toggle" href="#" id="Sign.add-toggle" onclick="return toggle('Sign.add');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Sign-class.html#add">add</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">level</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Sign.add-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Sign.add-expanded"><a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt><tt class="py-op">[</tt> <tt class="py-name">level</tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">value</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">hlevels</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-name">level</tt> <tt class="py-op">)</tt> </tt>
</div><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"> </tt>
<a name="Sign.get_level"></a><div id="Sign.get_level-def"><a name="L34"></a><tt class="py-lineno"> 34</tt> <a class="py-toggle" href="#" id="Sign.get_level-toggle" onclick="return toggle('Sign.get_level');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Sign-class.html#get_level">get_level</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">l</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Sign.get_level-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Sign.get_level-expanded"><a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt><tt class="py-op">[</tt> <tt class="py-string">"L%d"</tt> <tt class="py-op">%</tt> <tt class="py-name">l</tt> <tt class="py-op">]</tt> </tt>
</div><a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"> </tt>
<a name="Sign.get_string"></a><div id="Sign.get_string-def"><a name="L37"></a><tt class="py-lineno"> 37</tt> <a class="py-toggle" href="#" id="Sign.get_string-toggle" onclick="return toggle('Sign.get_string');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Sign-class.html#get_string">get_string</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Sign.get_string-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Sign.get_string-expanded"><a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-name">buff</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-9" class="py-name" targets="Variable analysis.i=analysis-module.html#i,Variable jvm.i=jvm-module.html#i"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-9', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">hlevels</tt> <tt class="py-op">:</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">            <tt class="py-name">buff</tt> <tt class="py-op">+=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt><tt class="py-op">[</tt> <tt id="link-10" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-10', 'i', 'link-9');">i</a></tt> <tt class="py-op">]</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">buff</tt> </tt>
</div></div><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line"> </tt>
<a name="Signature"></a><div id="Signature-def"><a name="L43"></a><tt class="py-lineno"> 43</tt> <a class="py-toggle" href="#" id="Signature-toggle" onclick="return toggle('Signature');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="sign.Signature-class.html">Signature</a> <tt class="py-op">:</tt> </tt>
</div><div id="Signature-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Signature-expanded"><a name="Signature.__init__"></a><div id="Signature.__init__-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="Signature.__init__-toggle" onclick="return toggle('Signature.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">tainted_information</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature.__init__-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt> <tt class="py-op">=</tt> <tt class="py-name">tainted_information</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line"> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_signatures</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_fields</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_packages</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">                        <tt class="py-comment"># Classical method signature with basic blocks, strings, fields, packages</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">                        <tt class="py-string">"L0"</tt> <tt class="py-op">:</tt> <tt class="py-op">{</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">                                    <tt class="py-number">0</tt> <tt class="py-op">:</tt> <tt class="py-op">(</tt> <tt class="py-string">"_get_strings_a"</tt><tt class="py-op">,</tt>     <tt class="py-string">"_get_fields_a"</tt><tt class="py-op">,</tt>    <tt class="py-string">"_get_packages_a"</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">                                    <tt class="py-number">1</tt> <tt class="py-op">:</tt> <tt class="py-op">(</tt> <tt class="py-string">"_get_strings_pa"</tt><tt class="py-op">,</tt>    <tt class="py-string">"_get_fields_a"</tt><tt class="py-op">,</tt>    <tt class="py-string">"_get_packages_a"</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">                                    <tt class="py-number">2</tt> <tt class="py-op">:</tt> <tt class="py-op">(</tt> <tt class="py-string">"_get_strings_a"</tt><tt class="py-op">,</tt>     <tt class="py-string">"_get_fields_a"</tt><tt class="py-op">,</tt>    <tt class="py-string">"_get_packages_pa_1"</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">                                    <tt class="py-number">3</tt> <tt class="py-op">:</tt> <tt class="py-op">(</tt> <tt class="py-string">"_get_strings_a"</tt><tt class="py-op">,</tt>     <tt class="py-string">"_get_fields_a"</tt><tt class="py-op">,</tt>    <tt class="py-string">"_get_packages_pa_2"</tt> <tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">                                <tt class="py-op">}</tt><tt class="py-op">,</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">                         </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">                        <tt class="py-comment"># strings</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">                        <tt class="py-string">"L1"</tt> <tt class="py-op">:</tt> <tt class="py-op">[</tt> <tt class="py-string">"_get_strings_a1"</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">                        <tt class="py-comment"># exceptions</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">                        <tt class="py-string">"L2"</tt> <tt class="py-op">:</tt> <tt class="py-op">[</tt> <tt class="py-string">"_get_exceptions"</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">                         </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">                        <tt class="py-comment"># fill array data</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">                        <tt class="py-string">"L3"</tt> <tt class="py-op">:</tt> <tt class="py-op">[</tt> <tt class="py-string">"_get_fill_array_data"</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">                    <tt class="py-op">}</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name" targets="Method sign.Signature._init_caches()=sign.Signature-class.html#_init_caches"><a title="sign.Signature._init_caches" class="py-name" href="#" onclick="return doclink('link-11', '_init_caches', 'link-11');">_init_caches</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_bb"></a><div id="Signature._get_bb-def"><a name="L72"></a><tt class="py-lineno"> 72</tt> <a class="py-toggle" href="#" id="Signature._get_bb-toggle" onclick="return toggle('Signature._get_bb');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_bb">_get_bb</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-param">functions</tt><tt class="py-op">,</tt> <tt class="py-param">options</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_bb-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_bb-expanded"><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">b</tt> <tt class="py-keyword">in</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt class="py-name">basic_blocks</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method analysis.BasicBlocks.get()=analysis.BasicBlocks-class.html#get,Method analysis.Stack.get()=analysis.Stack-class.html#get,Method analysis.StackTraces.get()=analysis.StackTraces-class.html#get,Method analysis.TaintedInteger.get()=analysis.TaintedInteger-class.html#get,Method androguard.Androguard.get()=androguard.Androguard-class.html#get,Method androguard.BC.get()=androguard.BC-class.html#get,Method androguard.WM.get()=androguard.WM-class.html#get,Method dvm.DCode.get()=dvm.DCode-class.html#get,Method dvm.IdItem.get()=dvm.IdItem-class.html#get,Method dvm.MethodIdItem.get()=dvm.MethodIdItem-class.html#get,Method dvm.ProtoIdItem.get()=dvm.ProtoIdItem-class.html#get,Method dvm.StringDataItem.get()=dvm.StringDataItem-class.html#get,Method dvm.TypeIdItem.get()=dvm.TypeIdItem-class.html#get,Method jvm.JavaCode.get()=jvm.JavaCode-class.html#get"><a title="analysis.BasicBlocks.get
analysis.Stack.get
analysis.StackTraces.get
analysis.TaintedInteger.get
androguard.Androguard.get
androguard.BC.get
androguard.WM.get
dvm.DCode.get
dvm.IdItem.get
dvm.MethodIdItem.get
dvm.ProtoIdItem.get
dvm.StringDataItem.get
dvm.TypeIdItem.get
jvm.JavaCode.get" class="py-name" href="#" onclick="return doclink('link-12', 'get', 'link-12');">get</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">            <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">.</tt><tt class="py-name">start</tt><tt class="py-op">,</tt> <tt class="py-string">"B"</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">            <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">.</tt><tt class="py-name">start</tt><tt class="py-op">,</tt> <tt class="py-string">"["</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line"> </tt>
<a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">            <tt class="py-name">internal</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"> </tt>
<a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-string">"return"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method analysis.DVMBasicBlock.get_last()=analysis.DVMBasicBlock-class.html#get_last,Method analysis.JVMBasicBlock.get_last()=analysis.JVMBasicBlock-class.html#get_last"><a title="analysis.DVMBasicBlock.get_last
analysis.JVMBasicBlock.get_last" class="py-name" href="#" onclick="return doclink('link-13', 'get_last', 'link-13');">get_last</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Method analysis.DVMBasicBlock.get_name()=analysis.DVMBasicBlock-class.html#get_name,Method analysis.ExternalFM.get_name()=analysis.ExternalFM-class.html#get_name,Method analysis.ExternalMethod.get_name()=analysis.ExternalMethod-class.html#get_name,Method analysis.JVMBasicBlock.get_name()=analysis.JVMBasicBlock-class.html#get_name,Method analysis.PathP.get_name()=analysis.PathP-class.html#get_name,Method analysis.TaintedPackage.get_name()=analysis.TaintedPackage-class.html#get_name,Method dvm.ClassItem.get_name()=dvm.ClassItem-class.html#get_name,Method dvm.DBC.get_name()=dvm.DBC-class.html#get_name,Method dvm.DBCSpe.get_name()=dvm.DBCSpe-class.html#get_name,Method dvm.EncodedField.get_name()=dvm.EncodedField-class.html#get_name,Method dvm.EncodedMethod.get_name()=dvm.EncodedMethod-class.html#get_name,Method dvm.FieldItem.get_name()=dvm.FieldItem-class.html#get_name,Method dvm.FillArrayData.get_name()=dvm.FillArrayData-class.html#get_name,Method dvm.MethodItem.get_name()=dvm.MethodItem-class.html#get_name,Method dvm.PackedSwitch.get_name()=dvm.PackedSwitch-class.html#get_name,Method dvm.SparseSwitch.get_name()=dvm.SparseSwitch-class.html#get_name,Method jvm.AttributeInfo.get_name()=jvm.AttributeInfo-class.html#get_name,Method jvm.CpInfo.get_name()=jvm.CpInfo-class.html#get_name,Method jvm.EmptyConstant.get_name()=jvm.EmptyConstant-class.html#get_name,Method jvm.FieldInfo.get_name()=jvm.FieldInfo-class.html#get_name,Method jvm.JBC.get_name()=jvm.JBC-class.html#get_name,Method jvm.JVMFormat.get_name()=jvm.JVMFormat-class.html#get_name,Method jvm.MethodInfo.get_name()=jvm.MethodInfo-class.html#get_name"><a title="analysis.DVMBasicBlock.get_name
analysis.ExternalFM.get_name
analysis.ExternalMethod.get_name
analysis.JVMBasicBlock.get_name
analysis.PathP.get_name
analysis.TaintedPackage.get_name
dvm.ClassItem.get_name
dvm.DBC.get_name
dvm.DBCSpe.get_name
dvm.EncodedField.get_name
dvm.EncodedMethod.get_name
dvm.FieldItem.get_name
dvm.FillArrayData.get_name
dvm.MethodItem.get_name
dvm.PackedSwitch.get_name
dvm.SparseSwitch.get_name
jvm.AttributeInfo.get_name
jvm.CpInfo.get_name
jvm.EmptyConstant.get_name
jvm.FieldInfo.get_name
jvm.JBC.get_name
jvm.JVMFormat.get_name
jvm.MethodInfo.get_name" class="py-name" href="#" onclick="return doclink('link-14', 'get_name', 'link-14');">get_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">                <tt class="py-name">internal</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Method bytecode.BuffHandle.end()=bytecode.BuffHandle-class.html#end"><a title="bytecode.BuffHandle.end" class="py-name" href="#" onclick="return doclink('link-15', 'end', 'link-15');">end</a></tt><tt class="py-op">,</tt> <tt class="py-string">"R"</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-string">"if"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="analysis.DVMBasicBlock.get_last
analysis.JVMBasicBlock.get_last" class="py-name" href="#" onclick="return doclink('link-16', 'get_last', 'link-13');">get_last</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="analysis.DVMBasicBlock.get_name
analysis.ExternalFM.get_name
analysis.ExternalMethod.get_name
analysis.JVMBasicBlock.get_name
analysis.PathP.get_name
analysis.TaintedPackage.get_name
dvm.ClassItem.get_name
dvm.DBC.get_name
dvm.DBCSpe.get_name
dvm.EncodedField.get_name
dvm.EncodedMethod.get_name
dvm.FieldItem.get_name
dvm.FillArrayData.get_name
dvm.MethodItem.get_name
dvm.PackedSwitch.get_name
dvm.SparseSwitch.get_name
jvm.AttributeInfo.get_name
jvm.CpInfo.get_name
jvm.EmptyConstant.get_name
jvm.FieldInfo.get_name
jvm.JBC.get_name
jvm.JVMFormat.get_name
jvm.MethodInfo.get_name" class="py-name" href="#" onclick="return doclink('link-17', 'get_name', 'link-14');">get_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">                <tt class="py-name">internal</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-18" class="py-name"><a title="bytecode.BuffHandle.end" class="py-name" href="#" onclick="return doclink('link-18', 'end', 'link-15');">end</a></tt><tt class="py-op">,</tt> <tt class="py-string">"I"</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-string">"goto"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="analysis.DVMBasicBlock.get_last
analysis.JVMBasicBlock.get_last" class="py-name" href="#" onclick="return doclink('link-19', 'get_last', 'link-13');">get_last</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="analysis.DVMBasicBlock.get_name
analysis.ExternalFM.get_name
analysis.ExternalMethod.get_name
analysis.JVMBasicBlock.get_name
analysis.PathP.get_name
analysis.TaintedPackage.get_name
dvm.ClassItem.get_name
dvm.DBC.get_name
dvm.DBCSpe.get_name
dvm.EncodedField.get_name
dvm.EncodedMethod.get_name
dvm.FieldItem.get_name
dvm.FillArrayData.get_name
dvm.MethodItem.get_name
dvm.PackedSwitch.get_name
dvm.SparseSwitch.get_name
jvm.AttributeInfo.get_name
jvm.CpInfo.get_name
jvm.EmptyConstant.get_name
jvm.FieldInfo.get_name
jvm.JBC.get_name
jvm.JVMFormat.get_name
jvm.MethodInfo.get_name" class="py-name" href="#" onclick="return doclink('link-20', 'get_name', 'link-14');">get_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">                <tt class="py-name">internal</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="bytecode.BuffHandle.end" class="py-name" href="#" onclick="return doclink('link-21', 'end', 'link-15');">end</a></tt><tt class="py-op">,</tt> <tt class="py-string">"G"</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">             </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">functions</tt> <tt class="py-op">:</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt> <tt class="py-op">:</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">                    <tt class="py-name">internal</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt> <tt class="py-op">)</tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-name">options</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt> <tt class="py-name">TypeError</tt> <tt class="py-op">:</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">                    <tt class="py-name">internal</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt> <tt class="py-op">)</tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line"> </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">            <tt class="py-name">internal</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Method diff.Method.sort()=diff.Method-class.html#sort"><a title="diff.Method.sort" class="py-name" href="#" onclick="return doclink('link-22', 'sort', 'link-22');">sort</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"> </tt>
<a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-23" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-23', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">internal</tt> <tt class="py-op">:</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-24" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-24', 'i', 'link-9');">i</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;=</tt> <tt class="py-name">b</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-keyword">and</tt> <tt id="link-25" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-25', 'i', 'link-9');">i</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">&lt;=</tt> <tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="bytecode.BuffHandle.end" class="py-name" href="#" onclick="return doclink('link-26', 'end', 'link-15');">end</a></tt> <tt class="py-op">:</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">                    <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt id="link-27" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-27', 'i', 'link-9');">i</a></tt> <tt class="py-op">)</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">            <tt class="py-keyword">del</tt> <tt class="py-name">internal</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">            <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">.</tt><tt id="link-28" class="py-name"><a title="bytecode.BuffHandle.end" class="py-name" href="#" onclick="return doclink('link-28', 'end', 'link-15');">end</a></tt><tt class="py-op">,</tt> <tt class="py-string">"]"</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line"> </tt>
<a name="Signature._init_caches"></a><div id="Signature._init_caches-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="Signature._init_caches-toggle" onclick="return toggle('Signature._init_caches');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_init_caches">_init_caches</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._init_caches-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._init_caches-expanded"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_fields</tt> <tt class="py-op">==</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> <tt class="py-op">:</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">f_t</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"variables"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-29" class="py-name" targets="Method analysis.BreakBlock.get_fields()=analysis.BreakBlock-class.html#get_fields,Method analysis.TaintedVariables.get_fields()=analysis.TaintedVariables-class.html#get_fields,Method dvm.ClassDataItem.get_fields()=dvm.ClassDataItem-class.html#get_fields,Method dvm.ClassItem.get_fields()=dvm.ClassItem-class.html#get_fields,Method dvm.DalvikVMFormat.get_fields()=dvm.DalvikVMFormat-class.html#get_fields,Method jvm.JVMFormat.get_fields()=jvm.JVMFormat-class.html#get_fields"><a title="analysis.BreakBlock.get_fields
analysis.TaintedVariables.get_fields
dvm.ClassDataItem.get_fields
dvm.ClassItem.get_fields
dvm.DalvikVMFormat.get_fields
jvm.JVMFormat.get_fields" class="py-name" href="#" onclick="return doclink('link-29', 'get_fields', 'link-29');">get_fields</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_fields</tt><tt class="py-op">[</tt> <tt class="py-name">f</tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">f_t</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Method analysis.TaintedPackage.get_paths_length()=analysis.TaintedPackage-class.html#get_paths_length,Method analysis.TaintedVariable.get_paths_length()=analysis.TaintedVariable-class.html#get_paths_length"><a title="analysis.TaintedPackage.get_paths_length
analysis.TaintedVariable.get_paths_length" class="py-name" href="#" onclick="return doclink('link-30', 'get_paths_length', 'link-30');">get_paths_length</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">sorted</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_fields</tt> <tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_fields</tt><tt class="py-op">[</tt> <tt class="py-name">f</tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">n</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">                <tt class="py-name">n</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_packages</tt> <tt class="py-op">==</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> <tt class="py-op">:</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">m_t</tt><tt class="py-op">,</tt> <tt class="py-name">m</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"packages"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Method analysis.TaintedPackages.get_packages()=analysis.TaintedPackages-class.html#get_packages"><a title="analysis.TaintedPackages.get_packages" class="py-name" href="#" onclick="return doclink('link-31', 'get_packages', 'link-31');">get_packages</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_packages</tt><tt class="py-op">[</tt> <tt class="py-name">m</tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">m_t</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="analysis.TaintedPackage.get_paths_length
analysis.TaintedVariable.get_paths_length" class="py-name" href="#" onclick="return doclink('link-32', 'get_paths_length', 'link-30');">get_paths_length</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">            <tt class="py-name">n</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">m</tt> <tt class="py-keyword">in</tt> <tt class="py-name">sorted</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_packages</tt> <tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_packages</tt><tt class="py-op">[</tt> <tt class="py-name">m</tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">n</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">                <tt class="py-name">n</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
</div><a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_fill_array_data"></a><div id="Signature._get_fill_array_data-def"><a name="L121"></a><tt class="py-lineno">121</tt> <a class="py-toggle" href="#" id="Signature._get_fill_array_data-toggle" onclick="return toggle('Signature._get_fill_array_data');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_fill_array_data">_get_fill_array_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_fill_array_data-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_fill_array_data-expanded"><a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">        <tt class="py-name">buff</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">b</tt> <tt class="py-keyword">in</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt class="py-name">basic_blocks</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="analysis.BasicBlocks.get
analysis.Stack.get
analysis.StackTraces.get
analysis.TaintedInteger.get
androguard.Androguard.get
androguard.BC.get
androguard.WM.get
dvm.DCode.get
dvm.IdItem.get
dvm.MethodIdItem.get
dvm.ProtoIdItem.get
dvm.StringDataItem.get
dvm.TypeIdItem.get
jvm.JavaCode.get" class="py-name" href="#" onclick="return doclink('link-33', 'get', 'link-12');">get</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-34" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-34', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">b</tt><tt class="py-op">.</tt><tt class="py-name">ins</tt> <tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-35" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-35', 'i', 'link-9');">i</a></tt><tt class="py-op">.</tt><tt class="py-name">op_name</tt> <tt class="py-op">==</tt> <tt class="py-string">"FILL-ARRAY-DATA"</tt> <tt class="py-op">:</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">                    <tt class="py-name">buff_tmp</tt> <tt class="py-op">=</tt> <tt id="link-36" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-36', 'i', 'link-9');">i</a></tt><tt class="py-op">.</tt><tt id="link-37" class="py-name" targets="Method dvm.DBC.get_operands()=dvm.DBC-class.html#get_operands,Method dvm.DBCSpe.get_operands()=dvm.DBCSpe-class.html#get_operands,Method dvm.FillArrayData.get_operands()=dvm.FillArrayData-class.html#get_operands,Method dvm.PackedSwitch.get_operands()=dvm.PackedSwitch-class.html#get_operands,Method dvm.SparseSwitch.get_operands()=dvm.SparseSwitch-class.html#get_operands,Method jvm.JBC.get_operands()=jvm.JBC-class.html#get_operands"><a title="dvm.DBC.get_operands
dvm.DBCSpe.get_operands
dvm.FillArrayData.get_operands
dvm.PackedSwitch.get_operands
dvm.SparseSwitch.get_operands
jvm.JBC.get_operands" class="py-name" href="#" onclick="return doclink('link-37', 'get_operands', 'link-37');">get_operands</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">                    <tt class="py-keyword">for</tt> <tt class="py-name">j</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">buff_tmp</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">                        <tt class="py-name">buff</tt> <tt class="py-op">+=</tt> <tt class="py-string">"\\x%02x"</tt> <tt class="py-op">%</tt> <tt class="py-name">ord</tt><tt class="py-op">(</tt> <tt class="py-name">buff_tmp</tt><tt class="py-op">[</tt><tt class="py-name">j</tt><tt class="py-op">]</tt> <tt class="py-op">)</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">buff</tt> </tt>
</div><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_exceptions"></a><div id="Signature._get_exceptions-def"><a name="L131"></a><tt class="py-lineno">131</tt> <a class="py-toggle" href="#" id="Signature._get_exceptions-toggle" onclick="return toggle('Signature._get_exceptions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_exceptions">_get_exceptions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_exceptions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_exceptions-expanded"><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line">        <tt class="py-name">buff</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-name">method</tt> <tt class="py-op">=</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Method analysis.DVMBasicBlock.get_method()=analysis.DVMBasicBlock-class.html#get_method,Method analysis.JVMBasicBlock.get_method()=analysis.JVMBasicBlock-class.html#get_method,Method analysis.MethodAnalysis.get_method()=analysis.MethodAnalysis-class.html#get_method,Method analysis.Path.get_method()=analysis.Path-class.html#get_method,Method analysis.TaintedIntegers.get_method()=analysis.TaintedIntegers-class.html#get_method,Method analysis.TaintedPackage.get_method()=analysis.TaintedPackage-class.html#get_method,Method analysis.TaintedPackages.get_method()=analysis.TaintedPackages-class.html#get_method,Method analysis.VMAnalysis.get_method()=analysis.VMAnalysis-class.html#get_method,Method dvm.ClassDefItem.get_method()=dvm.ClassDefItem-class.html#get_method,Method dvm.ClassManager.get_method()=dvm.ClassManager-class.html#get_method,Method dvm.DalvikVMFormat.get_method()=dvm.DalvikVMFormat-class.html#get_method,Method jvm.ClassManager.get_method()=jvm.ClassManager-class.html#get_method,Method jvm.JVMFormat.get_method()=jvm.JVMFormat-class.html#get_method,Method sign.Signature.get_method()=sign.Signature-class.html#get_method"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-38', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">        <tt class="py-name">handlers</tt> <tt class="py-op">=</tt> <tt class="py-name">method</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Method dvm.ClassManager.get_code()=dvm.ClassManager-class.html#get_code,Method dvm.CodeItem.get_code()=dvm.CodeItem-class.html#get_code,Method dvm.EncodedMethod.get_code()=dvm.EncodedMethod-class.html#get_code,Method jvm.MethodInfo.get_code()=jvm.MethodInfo-class.html#get_code"><a title="dvm.ClassManager.get_code
dvm.CodeItem.get_code
dvm.EncodedMethod.get_code
jvm.MethodInfo.get_code" class="py-name" href="#" onclick="return doclink('link-39', 'get_code', 'link-39');">get_code</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">handlers</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line"><tt class="py-comment">#       for try_item in method.get_code().tries :</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line"><tt class="py-comment">#           print "w00t", try_item</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line"> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">handler_catch_list</tt> <tt class="py-keyword">in</tt> <tt class="py-name">method</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name"><a title="dvm.ClassManager.get_code
dvm.CodeItem.get_code
dvm.EncodedMethod.get_code
jvm.MethodInfo.get_code" class="py-name" href="#" onclick="return doclink('link-40', 'get_code', 'link-39');">get_code</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">handlers</tt> <tt class="py-op">:</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">            <tt class="py-comment">#print "\t HANDLER_CATCH_LIST SIZE", handler_catch_list.size</tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">handler_catch</tt> <tt class="py-keyword">in</tt> <tt class="py-name">handler_catch_list</tt><tt class="py-op">.</tt><tt class="py-name">list</tt> <tt class="py-op">:</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">                <tt class="py-comment">#print "\t\t HANDLER_CATCH SIZE ", handler_catch.size</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">handler</tt> <tt class="py-keyword">in</tt> <tt class="py-name">handler_catch</tt><tt class="py-op">.</tt><tt class="py-name">handlers</tt> <tt class="py-op">:</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">                    <tt class="py-name">buff</tt> <tt class="py-op">+=</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name" targets="Method analysis.MethodAnalysis.get_vm()=analysis.MethodAnalysis-class.html#get_vm,Method androguard.AndroguardS.get_vm()=androguard.AndroguardS-class.html#get_vm,Method androguard.BC.get_vm()=androguard.BC-class.html#get_vm"><a title="analysis.MethodAnalysis.get_vm
androguard.AndroguardS.get_vm
androguard.BC.get_vm" class="py-name" href="#" onclick="return doclink('link-41', 'get_vm', 'link-41');">get_vm</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name" targets="Method dvm.DalvikVMFormat.get_class_manager()=dvm.DalvikVMFormat-class.html#get_class_manager,Method dvm.MapList.get_class_manager()=dvm.MapList-class.html#get_class_manager,Method jvm.JVMFormat.get_class_manager()=jvm.JVMFormat-class.html#get_class_manager"><a title="dvm.DalvikVMFormat.get_class_manager
dvm.MapList.get_class_manager
jvm.JVMFormat.get_class_manager" class="py-name" href="#" onclick="return doclink('link-42', 'get_class_manager', 'link-42');">get_class_manager</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name" targets="Method analysis.TaintedVariable.get_type()=analysis.TaintedVariable-class.html#get_type,Method dvm.ClassManager.get_type()=dvm.ClassManager-class.html#get_type,Method dvm.DalvikVMFormat.get_type()=dvm.DalvikVMFormat-class.html#get_type,Method dvm.FieldItem.get_type()=dvm.FieldItem-class.html#get_type,Method dvm.MapItem.get_type()=dvm.MapItem-class.html#get_type,Method dvm.MethodItem.get_type()=dvm.MethodItem-class.html#get_type,Method jvm.JVMFormat.get_type()=jvm.JVMFormat-class.html#get_type"><a title="analysis.TaintedVariable.get_type
dvm.ClassManager.get_type
dvm.DalvikVMFormat.get_type
dvm.FieldItem.get_type
dvm.MapItem.get_type
dvm.MethodItem.get_type
jvm.JVMFormat.get_type" class="py-name" href="#" onclick="return doclink('link-43', 'get_type', 'link-43');">get_type</a></tt><tt class="py-op">(</tt> <tt class="py-name">handler</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Variable dvm.FIELD_ID_ITEM_NAMEDTUPLE.type_idx=dvm.FIELD_ID_ITEM_NAMEDTUPLE-class.html#type_idx"><a title="dvm.FIELD_ID_ITEM_NAMEDTUPLE.type_idx" class="py-name" href="#" onclick="return doclink('link-44', 'type_idx', 'link-44');">type_idx</a></tt> <tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">                    <tt class="py-comment">#print "\t\t\t HANDLER", handler.type_idx, a.get_vm().get_class_manager().get_type( handler.type_idx ), handler.add</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">buff</tt> </tt>
</div><a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_strings_a1"></a><div id="Signature._get_strings_a1-def"><a name="L148"></a><tt class="py-lineno">148</tt> <a class="py-toggle" href="#" id="Signature._get_strings_a1-toggle" onclick="return toggle('Signature._get_strings_a1');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_strings_a1">_get_strings_a1</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_strings_a1-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_strings_a1-expanded"><a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-name">buff</tt> <tt class="py-op">=</tt> <tt class="py-string">""</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line"> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-name">strings_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"variables"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name" targets="Method analysis.TaintedVariables.get_strings_by_method()=analysis.TaintedVariables-class.html#get_strings_by_method"><a title="analysis.TaintedVariables.get_strings_by_method" class="py-name" href="#" onclick="return doclink('link-45', 'get_strings_by_method', 'link-45');">get_strings_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-46', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">s</tt> <tt class="py-keyword">in</tt> <tt class="py-name">strings_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">strings_method</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">                <tt class="py-name">buff</tt> <tt class="py-op">+=</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">,</tt> <tt class="py-string">' '</tt><tt class="py-op">)</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">buff</tt> </tt>
</div><a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_strings_pa"></a><div id="Signature._get_strings_pa-def"><a name="L157"></a><tt class="py-lineno">157</tt> <a class="py-toggle" href="#" id="Signature._get_strings_pa-toggle" onclick="return toggle('Signature._get_strings_pa');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_strings_pa">_get_strings_pa</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_strings_pa-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_strings_pa-expanded"><a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line">        <tt class="py-name">strings_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"variables"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="analysis.TaintedVariables.get_strings_by_method" class="py-name" href="#" onclick="return doclink('link-47', 'get_strings_by_method', 'link-45');">get_strings_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-48', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">s</tt> <tt class="py-keyword">in</tt> <tt class="py-name">strings_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">strings_method</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">                <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name" targets="Method analysis.Path.get_bb()=analysis.Path-class.html#get_bb"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-49', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name" targets="Method analysis.Path.get_idx()=analysis.Path-class.html#get_idx,Method bytecode._Bytecode.get_idx()=bytecode._Bytecode-class.html#get_idx,Method dvm.EncodedField.get_idx()=dvm.EncodedField-class.html#get_idx,Method dvm.EncodedMethod.get_idx()=dvm.EncodedMethod-class.html#get_idx"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-50', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"S%d"</tt> <tt class="py-op">%</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_strings_a"></a><div id="Signature._get_strings_a-def"><a name="L167"></a><tt class="py-lineno">167</tt> <a class="py-toggle" href="#" id="Signature._get_strings_a-toggle" onclick="return toggle('Signature._get_strings_a');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_strings_a">_get_strings_a</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_strings_a-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_strings_a-expanded"><a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">        <tt class="py-name">strings_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"variables"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name"><a title="analysis.TaintedVariables.get_strings_by_method" class="py-name" href="#" onclick="return doclink('link-51', 'get_strings_by_method', 'link-45');">get_strings_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-52', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">s</tt> <tt class="py-keyword">in</tt> <tt class="py-name">strings_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L172"></a><tt class="py-lineno">172</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">strings_method</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">                <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-53', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-54', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"S"</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_fields_a"></a><div id="Signature._get_fields_a-def"><a name="L176"></a><tt class="py-lineno">176</tt> <a class="py-toggle" href="#" id="Signature._get_fields_a-toggle" onclick="return toggle('Signature._get_fields_a');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_fields_a">_get_fields_a</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_fields_a-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_fields_a-expanded"><a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line">        <tt class="py-name">fields_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"variables"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name" targets="Method analysis.TaintedVariables.get_fields_by_method()=analysis.TaintedVariables-class.html#get_fields_by_method"><a title="analysis.TaintedVariables.get_fields_by_method" class="py-name" href="#" onclick="return doclink('link-55', 'get_fields_by_method', 'link-55');">get_fields_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-56', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line"> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line"> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fields_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">fields_method</tt><tt class="py-op">[</tt> <tt class="py-name">f</tt> <tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line">                <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-57" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-57', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-58', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"F%d"</tt> <tt class="py-op">%</tt> <tt id="link-59" class="py-name"><a title="sign.FIELD_ACCESS" class="py-name" href="#" onclick="return doclink('link-59', 'FIELD_ACCESS', 'link-5');">FIELD_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-60" class="py-name" targets="Method analysis.Path.get_access_flag()=analysis.Path-class.html#get_access_flag"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-60', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_packages_a"></a><div id="Signature._get_packages_a-def"><a name="L186"></a><tt class="py-lineno">186</tt> <a class="py-toggle" href="#" id="Signature._get_packages_a-toggle" onclick="return toggle('Signature._get_packages_a');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_packages_a">_get_packages_a</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_packages_a-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_packages_a-expanded"><a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">        <tt class="py-name">packages_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"packages"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-61" class="py-name" targets="Method analysis.TaintedPackages.get_packages_by_method()=analysis.TaintedPackages-class.html#get_packages_by_method"><a title="analysis.TaintedPackages.get_packages_by_method" class="py-name" href="#" onclick="return doclink('link-61', 'get_packages_by_method', 'link-61');">get_packages_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-62" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-62', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line"> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line"> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">m</tt> <tt class="py-keyword">in</tt> <tt class="py-name">packages_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">packages_method</tt><tt class="py-op">[</tt> <tt class="py-name">m</tt> <tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">                <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-63', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-64', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"P%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-65" class="py-name"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-65', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-66', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_packages_pa_1"></a><div id="Signature._get_packages_pa_1-def"><a name="L196"></a><tt class="py-lineno">196</tt> <a class="py-toggle" href="#" id="Signature._get_packages_pa_1-toggle" onclick="return toggle('Signature._get_packages_pa_1');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_packages_pa_1">_get_packages_pa_1</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-param">include_packages</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_packages_pa_1-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_packages_pa_1-expanded"><a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">        <tt class="py-name">packages_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"packages"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="analysis.TaintedPackages.get_packages_by_method" class="py-name" href="#" onclick="return doclink('link-67', 'get_packages_by_method', 'link-61');">get_packages_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-68', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line"> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line"> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">m</tt> <tt class="py-keyword">in</tt> <tt class="py-name">packages_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">packages_method</tt><tt class="py-op">[</tt> <tt class="py-name">m</tt> <tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">                <tt class="py-name">present</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt id="link-69" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-69', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">include_packages</tt> <tt class="py-op">:</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt id="link-70" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-70', 'i', 'link-9');">i</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt> <tt class="py-op">:</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">                        <tt class="py-name">present</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line">                        <tt class="py-keyword">break</tt> </tt>
<a name="L208"></a><tt class="py-lineno">208</tt>  <tt class="py-line"> </tt>
<a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">present</tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt> <tt class="py-op">:</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line">                    <tt class="py-keyword">continue</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line"> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-71', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-op">:</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">                    <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-72" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-72', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-73', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"P%s{%s%s%s}"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-74" class="py-name"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-74', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-75', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name" targets="Method analysis.ExternalFM.get_class_name()=analysis.ExternalFM-class.html#get_class_name,Method analysis.PathP.get_class_name()=analysis.PathP-class.html#get_class_name,Method dvm.EncodedField.get_class_name()=dvm.EncodedField-class.html#get_class_name,Method dvm.EncodedMethod.get_class_name()=dvm.EncodedMethod-class.html#get_class_name,Method dvm.FieldItem.get_class_name()=dvm.FieldItem-class.html#get_class_name,Method jvm.FieldInfo.get_class_name()=jvm.FieldInfo-class.html#get_class_name,Method jvm.MethodInfo.get_class_name()=jvm.MethodInfo-class.html#get_class_name"><a title="analysis.ExternalFM.get_class_name
analysis.PathP.get_class_name
dvm.EncodedField.get_class_name
dvm.EncodedMethod.get_class_name
dvm.FieldItem.get_class_name
jvm.FieldInfo.get_class_name
jvm.MethodInfo.get_class_name" class="py-name" href="#" onclick="return doclink('link-76', 'get_class_name', 'link-76');">get_class_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="analysis.DVMBasicBlock.get_name
analysis.ExternalFM.get_name
analysis.ExternalMethod.get_name
analysis.JVMBasicBlock.get_name
analysis.PathP.get_name
analysis.TaintedPackage.get_name
dvm.ClassItem.get_name
dvm.DBC.get_name
dvm.DBCSpe.get_name
dvm.EncodedField.get_name
dvm.EncodedMethod.get_name
dvm.FieldItem.get_name
dvm.FillArrayData.get_name
dvm.MethodItem.get_name
dvm.PackedSwitch.get_name
dvm.SparseSwitch.get_name
jvm.AttributeInfo.get_name
jvm.CpInfo.get_name
jvm.EmptyConstant.get_name
jvm.FieldInfo.get_name
jvm.JBC.get_name
jvm.JVMFormat.get_name
jvm.MethodInfo.get_name" class="py-name" href="#" onclick="return doclink('link-77', 'get_name', 'link-14');">get_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-78" class="py-name" targets="Method analysis.ExternalFM.get_descriptor()=analysis.ExternalFM-class.html#get_descriptor,Method analysis.PathP.get_descriptor()=analysis.PathP-class.html#get_descriptor,Method dvm.EncodedField.get_descriptor()=dvm.EncodedField-class.html#get_descriptor,Method dvm.EncodedMethod.get_descriptor()=dvm.EncodedMethod-class.html#get_descriptor,Method dvm.FieldItem.get_descriptor()=dvm.FieldItem-class.html#get_descriptor,Method jvm.FieldInfo.get_descriptor()=jvm.FieldInfo-class.html#get_descriptor,Method jvm.MethodInfo.get_descriptor()=jvm.MethodInfo-class.html#get_descriptor"><a title="analysis.ExternalFM.get_descriptor
analysis.PathP.get_descriptor
dvm.EncodedField.get_descriptor
dvm.EncodedMethod.get_descriptor
dvm.FieldItem.get_descriptor
jvm.FieldInfo.get_descriptor
jvm.MethodInfo.get_descriptor" class="py-name" href="#" onclick="return doclink('link-78', 'get_descriptor', 'link-78');">get_descriptor</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt> <tt class="py-op">:</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">                    <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-79', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-80', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"P%s{%s}"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-81" class="py-name"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-81', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-82" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-82', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">m</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line"> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line"> </tt>
<a name="Signature._get_packages_pa_2"></a><div id="Signature._get_packages_pa_2-def"><a name="L219"></a><tt class="py-lineno">219</tt> <a class="py-toggle" href="#" id="Signature._get_packages_pa_2-toggle" onclick="return toggle('Signature._get_packages_pa_2');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#_get_packages_pa_2">_get_packages_pa_2</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-param">include_packages</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature._get_packages_pa_2-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature._get_packages_pa_2-expanded"><a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">        <tt class="py-name">packages_method</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__tainted</tt><tt class="py-op">[</tt><tt class="py-string">"packages"</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="analysis.TaintedPackages.get_packages_by_method" class="py-name" href="#" onclick="return doclink('link-83', 'get_packages_by_method', 'link-61');">get_packages_by_method</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="analysis.DVMBasicBlock.get_method
analysis.JVMBasicBlock.get_method
analysis.MethodAnalysis.get_method
analysis.Path.get_method
analysis.TaintedIntegers.get_method
analysis.TaintedPackage.get_method
analysis.TaintedPackages.get_method
analysis.VMAnalysis.get_method
dvm.ClassDefItem.get_method
dvm.ClassManager.get_method
dvm.DalvikVMFormat.get_method
jvm.ClassManager.get_method
jvm.JVMFormat.get_method
sign.Signature.get_method" class="py-name" href="#" onclick="return doclink('link-84', 'get_method', 'link-38');">get_method</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line"> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">        <tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">m</tt> <tt class="py-keyword">in</tt> <tt class="py-name">packages_method</tt> <tt class="py-op">:</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">path</tt> <tt class="py-keyword">in</tt> <tt class="py-name">packages_method</tt><tt class="py-op">[</tt> <tt class="py-name">m</tt> <tt class="py-op">]</tt> <tt class="py-op">:</tt> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">                <tt class="py-name">present</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt id="link-85" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-85', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">include_packages</tt> <tt class="py-op">:</tt> </tt>
<a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">m</tt><tt class="py-op">.</tt><tt class="py-name">find</tt><tt class="py-op">(</tt><tt id="link-86" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-86', 'i', 'link-9');">i</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt> <tt class="py-op">:</tt> </tt>
<a name="L229"></a><tt class="py-lineno">229</tt>  <tt class="py-line">                        <tt class="py-name">present</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">                        <tt class="py-keyword">break</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line">                 </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">present</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt> <tt class="py-op">:</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line">                    <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-87', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-88', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"P%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-89" class="py-name"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-89', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-90', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line">                    <tt class="py-keyword">continue</tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line"> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line"> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-91', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt> <tt class="py-op">:</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">                    <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-92', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-93" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-93', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"P%s{%s%s%s}"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-94" class="py-name"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-94', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-95', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="analysis.ExternalFM.get_class_name
analysis.PathP.get_class_name
dvm.EncodedField.get_class_name
dvm.EncodedMethod.get_class_name
dvm.FieldItem.get_class_name
jvm.FieldInfo.get_class_name
jvm.MethodInfo.get_class_name" class="py-name" href="#" onclick="return doclink('link-96', 'get_class_name', 'link-76');">get_class_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="analysis.DVMBasicBlock.get_name
analysis.ExternalFM.get_name
analysis.ExternalMethod.get_name
analysis.JVMBasicBlock.get_name
analysis.PathP.get_name
analysis.TaintedPackage.get_name
dvm.ClassItem.get_name
dvm.DBC.get_name
dvm.DBCSpe.get_name
dvm.EncodedField.get_name
dvm.EncodedMethod.get_name
dvm.FieldItem.get_name
dvm.FillArrayData.get_name
dvm.MethodItem.get_name
dvm.PackedSwitch.get_name
dvm.SparseSwitch.get_name
jvm.AttributeInfo.get_name
jvm.CpInfo.get_name
jvm.EmptyConstant.get_name
jvm.FieldInfo.get_name
jvm.JBC.get_name
jvm.JVMFormat.get_name
jvm.MethodInfo.get_name" class="py-name" href="#" onclick="return doclink('link-97', 'get_name', 'link-14');">get_name</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="analysis.ExternalFM.get_descriptor
analysis.PathP.get_descriptor
dvm.EncodedField.get_descriptor
dvm.EncodedMethod.get_descriptor
dvm.FieldItem.get_descriptor
jvm.FieldInfo.get_descriptor
jvm.MethodInfo.get_descriptor" class="py-name" href="#" onclick="return doclink('link-98', 'get_descriptor', 'link-78');">get_descriptor</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt> <tt class="py-op">:</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">                    <tt class="py-name">l</tt><tt class="py-op">.</tt><tt class="py-name">append</tt><tt class="py-op">(</tt> <tt class="py-op">(</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-99" class="py-name"><a title="analysis.Path.get_bb" class="py-name" href="#" onclick="return doclink('link-99', 'get_bb', 'link-49');">get_bb</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">start</tt> <tt class="py-op">+</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="analysis.Path.get_idx
bytecode._Bytecode.get_idx
dvm.EncodedField.get_idx
dvm.EncodedMethod.get_idx" class="py-name" href="#" onclick="return doclink('link-100', 'get_idx', 'link-50');">get_idx</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">"P%s{%s}"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt id="link-101" class="py-name"><a title="sign.PACKAGE_ACCESS" class="py-name" href="#" onclick="return doclink('link-101', 'PACKAGE_ACCESS', 'link-6');">PACKAGE_ACCESS</a></tt><tt class="py-op">[</tt> <tt class="py-name">path</tt><tt class="py-op">.</tt><tt id="link-102" class="py-name"><a title="analysis.Path.get_access_flag" class="py-name" href="#" onclick="return doclink('link-102', 'get_access_flag', 'link-60');">get_access_flag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">m</tt><tt class="py-op">)</tt> <tt class="py-op">)</tt> <tt class="py-op">)</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line"> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">l</tt> </tt>
</div><a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line"> </tt>
<a name="Signature.get_method"></a><div id="Signature.get_method-def"><a name="L244"></a><tt class="py-lineno">244</tt> <a class="py-toggle" href="#" id="Signature.get_method-toggle" onclick="return toggle('Signature.get_method');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="sign.Signature-class.html#get_method">get_method</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-param">signature_type</tt><tt class="py-op">,</tt> <tt class="py-param">signature_arguments</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
</div><div id="Signature.get_method-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Signature.get_method-expanded"><a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">        <tt class="py-name">key</tt> <tt class="py-op">=</tt> <tt class="py-string">"%s-%s-%s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-name">signature_type</tt><tt class="py-op">,</tt> <tt class="py-name">signature_arguments</tt><tt class="py-op">)</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_signatures</tt> <tt class="py-op">:</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_signatures</tt><tt class="py-op">[</tt> <tt class="py-name">key</tt> <tt class="py-op">]</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line"> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">        <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt id="link-103" class="py-name" targets="Class sign.Sign=sign.Sign-class.html"><a title="sign.Sign" class="py-name" href="#" onclick="return doclink('link-103', 'Sign', 'link-103');">Sign</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line"> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">        <tt class="py-comment">#print signature_type, signature_arguments</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-104" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-104', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">signature_type</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">":"</tt><tt class="py-op">)</tt> <tt class="py-op">:</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">        <tt class="py-comment">#    print i, signature_arguments[ i ]</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-105" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-105', 'i', 'link-9');">i</a></tt> <tt class="py-op">==</tt> <tt class="py-string">"L0"</tt> <tt class="py-op">:</tt>  </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">                <tt class="py-name">_type</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt><tt class="py-op">[</tt> <tt id="link-106" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-106', 'i', 'link-9');">i</a></tt> <tt class="py-op">]</tt><tt class="py-op">[</tt> <tt class="py-name">signature_arguments</tt><tt class="py-op">[</tt> <tt id="link-107" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-107', 'i', 'link-9');">i</a></tt> <tt class="py-op">]</tt><tt class="py-op">[</tt> <tt class="py-string">"type"</tt> <tt class="py-op">]</tt> <tt class="py-op">]</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt> <tt class="py-op">:</tt>  </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">                    <tt class="py-name">_arguments</tt> <tt class="py-op">=</tt> <tt class="py-name">signature_arguments</tt><tt class="py-op">[</tt> <tt id="link-108" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-108', 'i', 'link-9');">i</a></tt> <tt class="py-op">]</tt><tt class="py-op">[</tt> <tt class="py-string">"arguments"</tt> <tt class="py-op">]</tt>  </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt> <tt class="py-op">:</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line">                    <tt class="py-name">_arguments</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line"> </tt>
<a name="L261"></a><tt class="py-lineno">261</tt>  <tt class="py-line">                <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name" targets="Method sign.Signature._get_bb()=sign.Signature-class.html#_get_bb"><a title="sign.Signature._get_bb" class="py-name" href="#" onclick="return doclink('link-109', '_get_bb', 'link-109');">_get_bb</a></tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt><tt class="py-op">,</tt> <tt class="py-name">_type</tt><tt class="py-op">,</tt> <tt class="py-name">_arguments</tt> <tt class="py-op">)</tt>  </tt>
<a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">                <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name" targets="Method analysis.TaintedVariables.add()=analysis.TaintedVariables-class.html#add,Method dvm.DBGBytecode.add()=dvm.DBGBytecode-class.html#add,Method sign.Sign.add()=sign.Sign-class.html#add"><a title="analysis.TaintedVariables.add
dvm.DBGBytecode.add
sign.Sign.add" class="py-name" href="#" onclick="return doclink('link-110', 'add', 'link-110');">add</a></tt><tt class="py-op">(</tt> <tt id="link-111" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-111', 'i', 'link-9');">i</a></tt><tt class="py-op">,</tt> <tt class="py-string">''</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-112" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-112', 'i', 'link-9');">i</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-keyword">for</tt> <tt id="link-113" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-113', 'i', 'link-9');">i</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line">             </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt id="link-114" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-114', 'i', 'link-9');">i</a></tt> <tt class="py-op">==</tt> <tt class="py-string">"L1"</tt> <tt class="py-op">:</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt><tt class="py-op">[</tt> <tt id="link-115" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-115', 'i', 'link-9');">i</a></tt> <tt class="py-op">]</tt> <tt class="py-op">:</tt>  </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line">                   <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt> <tt class="py-op">)</tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt> <tt class="py-op">)</tt> </tt>
<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line">                <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="analysis.TaintedVariables.add
dvm.DBGBytecode.add
sign.Sign.add" class="py-name" href="#" onclick="return doclink('link-116', 'add', 'link-110');">add</a></tt><tt class="py-op">(</tt> <tt id="link-117" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-117', 'i', 'link-9');">i</a></tt><tt class="py-op">,</tt> <tt class="py-name">value</tt> <tt class="py-op">)</tt> </tt>
<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line"> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt> <tt class="py-op">:</tt> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">f</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">levels</tt><tt class="py-op">[</tt> <tt id="link-118" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-118', 'i', 'link-9');">i</a></tt> <tt class="py-op">]</tt> <tt class="py-op">:</tt>  </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">                    <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt> <tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">f</tt> <tt class="py-op">)</tt><tt class="py-op">(</tt> <tt class="py-name">analysis_method</tt> <tt class="py-op">)</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">                <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="analysis.TaintedVariables.add
dvm.DBGBytecode.add
sign.Sign.add" class="py-name" href="#" onclick="return doclink('link-119', 'add', 'link-110');">add</a></tt><tt class="py-op">(</tt> <tt id="link-120" class="py-name"><a title="analysis.i
jvm.i" class="py-name" href="#" onclick="return doclink('link-120', 'i', 'link-9');">i</a></tt><tt class="py-op">,</tt> <tt class="py-name">value</tt> <tt class="py-op">)</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line"> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_cached_signatures</tt><tt class="py-op">[</tt> <tt class="py-name">key</tt> <tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">s</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">s</tt> </tt>
</div></div><a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/androguard/">Androguard</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed May 18 15:57:05 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
